<style lang="scss" scoped>
.approach {
    height: 100vh;
    width: 100vw;
    image {
        width: 100%;
        height: 100%;
        vertical-align: middle;
    }
}
</style>

<template>
    <view class="approach">
        <image src="../../static/images/login/approach.gif" mode="" />
    </view>
</template>

<script setup lang="ts">
import { reactive, ref } from "vue";
import { onLoad, onShow, onLaunch } from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
const userStore = useUserStore();
const state = reactive<{
    data: string;
}>({
    data: "",
});
onLoad(() => {
    // setTimeout(() => {
    if (userStore.token) {
        uni.reLaunch({ url: "/pages/index/index" });
    } else {
        uni.navigateTo({ url: "/pages/login/login" });
    }
    // }, 2500);
});
</script>
